package src.com.atguigu01._static.exer2;

/**
 * ClassName: Account
 * Package: src.com.atguigu01._static.exer1
 * Description:
 *
 * @Author BuTang
 * @Create 2023/3/9 20:35
 * @Version 1.0
 */
public class Account {
    private long acccountNumber;
    private static long number =123321;
    private double balance;
    private String passkey;
    private static double interstRate;
    private static double minBalance=0;

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {

    }

    public String getPasskey() {
        return passkey;
    }

    public static void setPasskey(String passkey) {
        passkey = passkey;
    }

    public Account(){
        this.acccountNumber =number;
        number++;

    }

    public Account(double balance, String passkey) {
        this.balance = balance;
        this.passkey = passkey;
        this.acccountNumber =number;
        number++;
    }

    @Override
    public String toString() {
        return "账号："+acccountNumber+"\t"+"密码："+passkey+"\t"+"余额："+balance+"\t"+"最小余额："+minBalance;
    }
}
